package diaosidadui.oop02;

public class Test {
    public static void main(String[] args) {
        Teacher t1 = new Teacher("苍老师","xxx.com");
        Teacher t2 = new Teacher();
        t2.setName("波多老师");
        t2.setUrl("mmm.com");
        Student st1 = new Student("张三",20);
        Student st2 = new Student();
        st2.setAge(25);
        st2.setName("李四");

        System.out.println(t1);
        System.out.println(t2);
        System.out.println(st1);
        System.out.println(st2);

        t1.teach(st1.getName());
    }
}
